using System;
using System.Collections;
using System.Collections.Generic;

using Framework.Library.Base;

namespace Framework.Library.Domain
{
    public partial class PortalModulesetting : BusinessBase<string>
    {
        #region Declarations

		private int _moduleID = default(Int32);
		private string _settingName = String.Empty;
		
		private string _settingValue = String.Empty;
		
		
		
        #endregion

        #region Constructors

        public PortalModulesetting() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_settingValue);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public override string Id
		{
			get
			{
				System.Text.StringBuilder uniqueId = new System.Text.StringBuilder();
				uniqueId.Append(_moduleID.ToString());
				uniqueId.Append("^");
				uniqueId.Append(_settingName.ToString());
				return uniqueId.ToString();
			}
		}
		
		public virtual int ModuleID
        {
            get { return _moduleID; }
			set
			{
				
				
				_moduleID = value;
				
			}
        }
		
		public virtual string SettingName
        {
            get { return _settingName; }
			set
			{
				
				
				_settingName = value;
				
			}
        }
		
		public virtual string SettingValue
        {
            get { return _settingValue; }
			set
			{
				
				_settingValue = value;
				
			}
        }
		
        #endregion
    }
}
